const connection = require('../db/index')
const express = require("express");
const bookList = express.Router();
//获取图书左侧目录
bookList.get('/getbooklist',(req, res) => {
    connection.query('select * from booklist', function(err, rows, fields) {
        if (err) {
            throw err
        }
        res.send({
            rows,
            stats:200
        })
    })
})

module.exports = bookList
